# Autor：YIXI
# date：week05

stu_id = [10001,10002,10003,10004,10008,10001,10009,10010,10001]

# 1. copy()很重要
stu_id_matedate = stu_id
print(id(stu_id))
print("stu_id:",stu_id,'\n','stu_id_matedate:',stu_id_matedate)


# 实验 1 赋值
# stu_id.pop(1)
# print("stu_id:",stu_id,'\n','stu_id_matedate:',stu_id_matedate)

# 实验 2 copy()
# stu_id_matedate = stu_id.copy()
# stu_id.pop(1)
# print("stu_id:",stu_id,'\n','stu_id_matedate:',stu_id_matedate)

# 实验3 切片实现复制
stu_id_matedate = stu_id[:]
stu_id.pop(1)
print("stu_id:",stu_id,'\n','stu_id_matedate:',stu_id_matedate)